<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Project Risk Submission</title>
    <style>
    body {
        font-family: Arial, sans-serif;
        background-color: #f4f4f4;
        margin: 0;
        padding: 0;
    }

    .container {
        max-width: 600px;
        margin: 50px auto;
        padding: 20px;
        background: white;
        border-radius: 5px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    h1 {
        text-align: center;
        color: #333;
    }

    label {
        display: block;
        margin: 15px 0 5px;
    }

    input, textarea, select, button {
        width: 100%;
        padding: 10px 0;
        margin-bottom: 20px;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

    button {
        background-color: #28a745;
        color: white;
        border: none;
        cursor: pointer;
    }

    button:hover {
        background-color: #218838;
    }

    .hidden {
        display: none;
    }

    #successMessage {
        text-align: center;
        color: #28a745;
        font-weight: bold;
    }
    </style>
</head>
<body>
    <div class="container">
        <h1>风险预警</h1>
        <form id="riskForm" action="/risk/submit" method="POST">
            <label for="projectName">项目名称:</label>
            <select id="riskCategory" name="riskCategory" required>
                <option value="">选择你的项目</option>
                <option value="Technical">用户管理系统软件</option>
                <option value="Financial">黑帝斯补完计划</option>
            </select>            

            <label for="riskDescription">风险描述:</label>
            <textarea id="riskDescription" name="riskDescription" rows="4" required></textarea>

            <button type="submit">提交</button>
        </form>
        <div id="successMessage" class="hidden">Risk submitted successfully!</div>
    </div>

</body>
</html>